import {Injectable} from '@angular/core';
import {HttpClient} from '../../../../providers/httpClient';
import {Config} from '../../../../providers/config';

@Injectable()
export class MarketingAgencyChooseService {
  constructor(public httpClient: HttpClient,
              public config: Config) {
  }

  /**
   * [getOrganizationList 获取机构列表]
   * @param
   */
  getListData(page, condition) {
    let postBody = {
      "module": "KSB",
      "method": "USP_A02_0030",
      "type":"USP",
      "params": {
        "agencyname":condition.agencyname,
        "provincename":condition.provincename,
        "cityname":condition.cityname,
        "netname":condition.netname,
        "iszb":condition.iszb,
        "pageLines":this.config.pageSize,
        "currentPage":page
      }
    };
    return this.httpClient.post(postBody, {
    });
  }
}
